package practiceTest.chap04.work1;

import chap04.Queue.QueueX;

/**
 * Created by root on 2017/7/14.
 */
public class work1 {
    public static void main(String[] args) {
        QueueX queueX = new QueueX(5);
        queueX.insert(20);
        queueX.insert(40);
        queueX.insert(60);
        queueX.insert(80);
        queueX.insert(90);
        queueX.insert(100);

        queueX.displayQueue();

        queueX.remove();


        queueX.displayQueue();

        queueX.insert(2);
        queueX.insert(4);
        queueX.insert(6);
        queueX.insert(8);

        queueX.displayQueue();
    }
}
